<extend name="common/base" />
<block name="resource">
    <link href="__PUBLIC__/Home/ui3/css/resetPassword.css" rel="stylesheet">
</block>
<block name="accountJS">
    <script src="__PUBLIC__/Home/ui3/js/web/user/login.js" type="text/javascript"></script>
</block>
<block name="header">
    <include file="User/loginheader" />
</block>

<block name="content">
    <div class="main">
        <div class="resetPassword-box" data-bind="visible:resetPassword.step() == 1">
            <div class="resetPass-title">
                <span>设置密码第一步</span>
            </div>
            <div class="resetPassword-main">
                <form action="{:U('visitor/resetPwdVerify')}">
                    <div class="resetPassword-step"></div>
                    <div class="registerInputList">
                        <div class="registerInput-num">
                            <div class="registerInput-num-box">
                                <i></i>
                                <input class="JS-account_input" type="text" maxlength="11" placeholder="请输入注册手机号" name="mobile" />
                            </div>
                            <p data-bind="text:resetPassword.error.mobile"></p>
                        </div>
                        <div class="registerInput-code">
                            <div class="registerInput-code-box">
                                <i></i>
                                <input class="JS-account_input" type="text" maxlength="6" placeholder="请输入验证码" name="verify" />
                                <input type="button" class="code btn myBtn" value="发送验证码" title="发送验证码" data-bind="click:reset.sendSms" data-url="{:U('api/visitor/sendVerify')}">
                            </div>
                            <p data-bind="text:resetPassword.error.verify"></p>
                        </div>
                    </div>
                    <input type="button" class="loginBtn resetPass-submit btn myBtn JS-submit" value="确定" data-bind="click:reset.doVerify"/>
                </form>
            </div>
        </div>
        <div class="resetPassword-box" data-bind="visible:resetPassword.step() == 2">
            <div class="resetPass-title">
                <span>重置密码</span>
            </div>
            <div class="resetPassword-main">
                <form action="{:U('visitor/resetPwd')}">
                    <div class="resetPassword-step1"></div>
                    <div class="registerInputList">
                        <div class="registerInput-password">
                            <div class="registerInput-password-box">
                                <i></i>
                                <input type="password" class="JS-account_input JS-password" maxlength="16" name="password" placeholder="请输入密码"/>
                            </div>
                            <p data-bind="text:resetPassword.error.password"></p>
                        </div>
                        <div class="registerInput-password1">
                            <div class="registerInput-password-box1">
                                <i></i>
                                <input type="password" class="JS-account_input" maxlength="16" name="repassword" placeholder="再次确认密码"/>
                            </div>
                            <p data-bind="text:resetPassword.error.repassword"></p>
                        </div>
                    </div>
                    <input type="button" class="loginBtn resetPass-submit1 btn myBtn JS-submit" value="确定" data-bind="click:reset.doReset"/>
                </form>
            </div>
        </div>
    </div>
</block>
<block name="widget"></block>